import sys
import subprocess
import time
import runTSP
from statlib import stats

if __name__ == "__main__":

#   file_path = "inputs/testEUC2D.tsp"
   file_path = "inputs/testEXPLICIT_UPPERROW.tsp"

   opts = sys.argv[1:]

   #mut,xover
   tipo = opts[1]

   if (tipo == "mut"):
      for mutation in [j*0.01 for j in range(1, 11)]:
         print str(mutation) + " " + runTSP.main(["5000", str(mutation), "0.3", file_path, "100", "50"])
   else:
      for xover in [j*0.1 for j in range(1, 6)]:
         print str(xover) + " " + runTSP.main(["5000", "0.01", str(xover), file_path, "100", "50"])